//
//  HOReplyEntity.m
//  微度报修
//
//  Created by foguo-mac-1 on 7/3/16.
//  Copyright © 2016 WeiDu. All rights reserved.
//

#import "HOCommentEntity.h"
#import "HOConstants.h"

@implementation HOCommentEntity


- (instancetype)init
{
	if(self = [super init])
	{
		self.imageList = [NSArray array];
	}
	return self;
}

- (void)parseDic:(NSDictionary *)dic
{
	self.commentId = [[dic objectForKey:kHO_FIELD_CommentId] intValue];
	self.content = [dic objectForKey:kHO_FIELD_Content];
	self.createTime = [[dic objectForKey:kHO_FIELD_CreateTime] doubleValue];
	self.status = [[dic objectForKey:kHO_FIELD_Status] intValue];
	self.workId = [dic objectForKey:kHO_FIELD_WorkeId];
	self.headPic = [dic objectForKey:kHO_FIELD_Headpic];
	self.departmentName = [dic objectForKey:kHO_FIELD_DepartmentName];
	self.userName = [dic objectForKey:kHO_FIELD_UserName];
	self.faultVoice = [dic objectForKey:kHO_FIELD_FaultVoice];
	
	
	self.doneName = [dic objectForKey:kHO_FIELD_DoneName];
	NSArray *images = [dic objectForKey:kHO_FIELD_FaultImage];
	if(images != nil)
	{
		self.imageList = [NSArray arrayWithArray:images];
	}
	
}

- (void)dealloc
{
	self.content = nil;
	self.headPic = nil;
	self.departmentName = nil;
	self.userName = nil;
	self.doneName = nil;
	[super dealloc];
}
@end
